package ucm;

import java.sql.SQLException;
import model.Flight;

/**
 * UCDeleteAirport
 *
 * Primary Actor: User
 * Goal: Delete Airport
 * Precondition: Connected to database. Airport exists on database. Manager is logged on
 * Postcondition: Airport is deleted from database
 *
 * @author Tobias Robinson
 */
public class UCDeleteAirport {

    public UCDeleteAirport() throws SQLException {
        run();
    }

    /**
     * 1. Actor selects Delete Flight.
     * 2. The system requests the actor to enter airport name.
     * 4. System verifies user input.
     * 5. System removes airport from database.
     * 6. System notifies actor airport has been deleted.
     */
    public void run() throws SQLException {
        Flight.loadDeleteAirportView();
    }

}
